﻿using Photoshop;
using SharpShell.Interop;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MyTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var psd = new PsdFile();
            psd.Load(@"D:\桌面\天.psd");
            var img = ImageDecoder.DecodeImage(psd);
            img.Save(@"D:\桌面\天.png", ImageFormat.Png);
            img.Dispose();
        }
    }
}
